<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="author" content="林镭特">
    <title></title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        main{
            display: flex;
            width: 200px;
            margin: 0 auto;
        }
        .left ,.right{
            position: relative;
            border: 1px solid ;
            padding: 5px;
            text-align: center;
            
        }
        .box{
            position: absolute;
            left: -1px;
            top: 31px;
            list-style: none;
            width: 66px;
            display: none;
        }
        .box li{
            width: 74px;
            text-align: center;
            border: 1px solid;
            /* padding: 5px; */
        }
        p{
            width: 50px;
            margin: 0 auto;
            margin-top: 100px;
        }
        .left:hover .box{
            display: block;
        }
        .right:hover .box{
            display: block;
        }

        

    </style>
</head>
<body>
    <main>
        <div class="left">
            销售订单
            <ul class="box">
                <li>销售1</li>
                <li>销售2</li>
                <li>销售3</li>
            </ul>
        </div>
        <div class="right">
            消费订单
            <ul class="box">
                <li>消费1</li>
                <li>消费2</li>
                <li>消费3</li>
            </ul>
        </div>
    </main>
    <p>1</p>
    <script src="jQuery.js"></script>
<script>
   
    $('li').click(function () {
        $('p').text($(this).text())
    })
</script>
</body>
</html>